import { http, toast} from '@/uni_modules/uview-plus'

export const getLotteryList = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getLotteryListApi', params, config)

export const getLotteryInfoApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getLotteryInfoApi',params, config)

export const userJoinLotteryApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/userJoinLotteryApi', params, config)

export const getUserLotteryProductListApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getUserLotteryProductListApi', params, config)

//发布抽奖
export const saveLotteryApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/saveLotteryApi', params, config)

//我发布的抽奖
export const getLotterySelfListApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getLotterySelfListApi', params, config)

//我参与的抽奖
export const getLotteryJoinListApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getLotteryJoinListApi', params, config)
